package com.znsd.dining.room.service.impl;/*@autho:JL
 */

import com.znsd.dining.room.dao.ShoppingDao;
import com.znsd.dining.room.pojo.Shopping;
import com.znsd.dining.room.service.ShoppingService;
import com.znsd.dining.room.vo.Shopping_store_menu;
import feign.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class ShoppingServiceImpl implements ShoppingService {
    @Autowired
    private ShoppingDao shoppingDao;
    public List<Shopping_store_menu> selectListShopping( Integer userId, Integer storeId){
        System.out.println(userId+""+storeId);
        Map map= new HashMap();
        map.put("userId",userId);
        map.put("storeId",storeId);
        List<Shopping_store_menu> shoppings = shoppingDao.selectListShopping(map);
        return   shoppings;
    }
}
